Optimal. Leaf size=81 \[ \frac {59 x}{2048}-\frac {59 \text {ArcTan}\left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{1024 d}-\frac {3 \sin (c+d x)}{32 d (5+3 \cos (c+d x))^2}-\frac {45 \sin (c+d x)}{512 d (5+3 \cos (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2743, 2833, 12,
2736} \begin {gather*} -\frac {59 \text {ArcTan}\left (\frac {\sin (c+d x)}{\cos (c+d x)+3}\right )}{1024 d}-\frac {45 \sin (c+d x)}{512 d (3 \cos (c+d x)+5)}-\frac {3 \sin (c+d x)}{32 d (3 \cos (c+d x)+5)^2}+\frac {59 x}{2048} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2736
Rule 2743
Rule 2833
Rubi steps
\begin {align*} \int \frac {1}{(5+3 \cos (c+d x))^3} \, dx &=-\frac {3 \sin (c+d x)}{32 d (5+3 \cos (c+d x))^2}-\frac {1}{32} \int \frac {-10+3 \cos (c+d x)}{(5+3 \cos (c+d x))^2} \, dx\\ &=-\frac {3 \sin (c+d x)}{32 d (5+3 \cos (c+d x))^2}-\frac {45 \sin (c+d x)}{512 d (5+3 \cos (c+d x))}+\frac {1}{512} \int \frac {59}{5+3 \cos (c+d x)} \, dx\\ &=-\frac {3 \sin (c+d x)}{32 d (5+3 \cos (c+d x))^2}-\frac {45 \sin (c+d x)}{512 d (5+3 \cos (c+d x))}+\frac {59}{512} \int \frac {1}{5+3 \cos (c+d x)} \, dx\\ &=\frac {59 x}{2048}-\frac {59 \tan ^{-1}\left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{1024 d}-\frac {3 \sin (c+d x)}{32 d (5+3 \cos (c+d x))^2}-\frac {45 \sin (c+d x)}{512 d (5+3 \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 56, normalized size = 0.69 \begin {gather*} -\frac {59 \text {ArcTan}\left (2 \cot \left (\frac {1}{2} (c+d x)\right )\right )+\frac {3 (182 \sin (c+d x)+45 \sin (2 (c+d x)))}{(5+3 \cos (c+d x))^2}}{1024 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 62, normalized size = 0.77
method | result | size |
derivativedivides | \(\frac {\frac {-\frac {69 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{128}-\frac {51 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{32}}{4 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )^{2}}+\frac {59 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{1024}}{d}\) | \(62\) |
default | \(\frac {\frac {-\frac {69 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{128}-\frac {51 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{32}}{4 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )^{2}}+\frac {59 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{1024}}{d}\) | \(62\) |
risch | \(-\frac {3 i \left (59 \,{\mathrm e}^{3 i \left (d x +c \right )}+295 \,{\mathrm e}^{2 i \left (d x +c \right )}+241 \,{\mathrm e}^{i \left (d x +c \right )}+45\right )}{256 d \left (3 \,{\mathrm e}^{2 i \left (d x +c \right )}+10 \,{\mathrm e}^{i \left (d x +c \right )}+3\right )^{2}}-\frac {59 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {1}{3}\right )}{2048 d}+\frac {59 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+3\right )}{2048 d}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.55, size = 111, normalized size = 1.37 \begin {gather*} -\frac {\frac {6 \, {\left (\frac {68 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {23 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{\frac {8 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {\sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 16} - 59 \, \arctan \left (\frac {\sin \left (d x + c\right )}{2 \, {\left (\cos \left (d x + c\right ) + 1\right )}}\right )}{1024 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 90, normalized size = 1.11 \begin {gather*} -\frac {59 \, {\left (9 \, \cos \left (d x + c\right )^{2} + 30 \, \cos \left (d x + c\right ) + 25\right )} \arctan \left (\frac {5 \, \cos \left (d x + c\right ) + 3}{4 \, \sin \left (d x + c\right )}\right ) + 12 \, {\left (45 \, \cos \left (d x + c\right ) + 91\right )} \sin \left (d x + c\right )}{2048 \, {\left (9 \, d \cos \left (d x + c\right )^{2} + 30 \, d \cos \left (d x + c\right ) + 25 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.56, size = 359, normalized size = 4.43 \begin {gather*} \begin {cases} \frac {x}{\left (5 + 3 \cosh {\left (2 \operatorname {atanh}{\left (2 \right )} \right )}\right )^{3}} & \text {for}\: c = - d x - 2 i \operatorname {atanh}{\left (2 \right )} \vee c = - d x + 2 i \operatorname {atanh}{\left (2 \right )} \\\frac {x}{\left (3 \cos {\left (c \right )} + 5\right )^{3}} & \text {for}\: d = 0 \\\frac {59 \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right ) \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{1024 d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 8192 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 16384 d} + \frac {472 \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right ) \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{1024 d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 8192 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 16384 d} + \frac {944 \left (\operatorname {atan}{\left (\frac {\tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{1024 d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 8192 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 16384 d} - \frac {138 \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{1024 d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 8192 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 16384 d} - \frac {408 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{1024 d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 8192 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 16384 d} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 75, normalized size = 0.93 \begin {gather*} \frac {59 \, d x + 59 \, c - \frac {12 \, {\left (23 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 68 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 4\right )}^{2}} - 118 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 3}\right )}{2048 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.39, size = 96, normalized size = 1.19 \begin {gather*} \frac {59\,\mathrm {atan}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{1024\,d}-\frac {59\,\left (\mathrm {atan}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\frac {d\,x}{2}\right )}{1024\,d}-\frac {\frac {69\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{512}+\frac {51\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{128}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+16\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________